Add rulemaking document sorting logic and tests#6541
Open
Add rulemaking document sorting logic and tests#6541
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (required)
This PR adds the front end sorting logic to the api.
Sorting rules:
No tier documents:
Level 2 or 3 documents:
Level 1 documents:
Required reviewers 1 - 2 devs
Impacted areas of the application
General components of the application that this PR will affect:
How to test
Test URLS:
https://fec-dev-api.app.cloud.gov/v1/rulemaking/search/?rm_no=2005-02
https://dev.fec.gov/legal/rulemakings/2005-02/?doc_id=1229
https://fec-dev-api.app.cloud.gov/v1/rulemaking/search/?rm_no=2006-01
https://dev.fec.gov/legal/rulemakings/2006-01/?doc_id=7749
https://fec-dev-api.app.cloud.gov/v1/rulemaking/search/?rm_no=2014-01
https://dev.fec.gov/legal/rulemakings/2014-01/?doc_id=305653
https://fec-dev-api.app.cloud.gov/v1/rulemaking/search/?rm_no=2024-01
https://dev.fec.gov/legal/rulemakings/2024-01/?doc_id=425540
https://fec-dev-api.app.cloud.gov/v1/rulemaking/search/?q=%22REG%202013-04%22&q_proximity=Weintraub%20voting%20affirmatively&q_proximity=Commissioners%20Goodman&max_gaps=3&doc_category_id=1
https://fec-dev-api.app.cloud.gov/v1/rulemaking/search/?rm_no=2011-02&q=%22postal%20service%20address%20of%20a%20commenter%22